Skip to main content
POST
/
privacy
/
consents
Upsert a privacy consent
curl --request POST \
  --url https://your_a2_service/privacy/consents \
  --header 'Content-Type: application/json' \
  --data '{
  "consent_channel": "web_login",
  "consent_date": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "email": "<string>",
  "is_agreed": true,
  "policy_version": "1.0.0",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "consent_channel": "web_login",
  "consent_date": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "is_agreed": true,
  "policy_version": "1.0.0",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Body

application/json

Schema for updating privacy consent.

The channel where the privacy consent was given.

Examples:

"web_login"

email
string
required

The email of the user.

is_agreed
boolean
required

Whether the user agreed to the privacy policy.

policy_version
string
required

The version of privacy consent.

Examples:

"1.0.0"

user_id
string<uuid>
required

The ID of the user.

The date of the privacy consent.

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.

Response

Successful Response

Schema for privacy consent.

The channel where the privacy consent was given.

Examples:

"web_login"

is_agreed
boolean
required

Whether the user agreed to the privacy policy.

policy_version
string
required

The version of privacy consent.

Examples:

"1.0.0"

user_id
string<uuid>
required

The ID of the user.

The date of the privacy consent.

created_at
string<date-time> | null

The date and time the entity was created.

updated_at
string<date-time> | null

The date and time the entity was last updated.